package com.coding.dao;

import com.coding.pojo.Comment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentDao {
    int deleteByPrimaryKey(Integer comment_id);

    int countComments(@Param("source_id")int source_id,@Param("source_kind")String source_kind);

    List<Comment> selectByPostId(int post_id);

    List<Comment> selectByPostIdTime(int post_id);

    List<Comment> queryAll(Comment comment);

    int insert(Comment record);

    int insertSelective(Comment record);

    Comment selectByPrimaryKey(Integer comment_id);

    int updateByPrimaryKeySelective(Comment record);

    int updateByPrimaryKey(Comment record);
}